Skip to content

Add scroll to active toc #2932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 1, 2023
Merged

Add scroll to active toc #2932

merged 5 commits into from
Dec 1, 2023

Conversation

IZUMIRU
Copy link
Contributor

@IZUMIRU IZUMIRU commented Nov 27, 2023

If the toc is long, you may not know where you are reading when you read the chapter below.

I think there is a matter of preference regarding UX, so I will leave it to you to decide whether to merge or close:)

Nov-28-2023.02-36-38.mp4

@bishabosha
Copy link
Member

I think this is great - I was wondering if you might like to improve the sidebar in "book" views as well - see https://docs.scala-lang.org/scala3/book/packaging-imports.html

@IZUMIRU
Copy link
Contributor Author

IZUMIRU commented Nov 28, 2023

@bishabosha
Thanks for the review. I tried to fix it.

@bishabosha
Copy link
Member

Thanks @IZUMIRU , I love it :) just asking for others opinions

@bishabosha bishabosha requested a review from adpi2 November 28, 2023 14:00
Copy link
Member

@adpi2 adpi2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a useful improvement to me.

@IZUMIRU
Copy link
Contributor Author

IZUMIRU commented Dec 1, 2023

@bishabosha @adpi2
Thanks for the review!
I'd like to ask you to merge this approved PR.
Need to wait for other reviews?

@SethTisue SethTisue merged commit 2c56642 into scala:main Dec 1, 2023
@SethTisue
Copy link
Member

Thank you!

@IZUMIRU IZUMIRU deleted the toc-scroll branch December 1, 2023 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants